# RUN: llvm-mc --disassemble %s -triple=x86_64 -x86-asm-syntax=intel --output-asm-variant=1 | FileCheck %s

# CHECK: tilerelease
0xc4,0xe2,0x78,0x49,0xc0

# CHECK: tilezero tmm6
0xc4,0xe2,0x7b,0x49,0xf0

# CHECK: tilezero tmm3
0xc4,0xe2,0x7b,0x49,0xd8

# CHECK: tilerelease
0xc4,0xe2,0x78,0x49,0xc0

# CHECK: tilezero tmm6
0xc4,0xe2,0x7b,0x49,0xf0

# CHECK: tilezero tmm3
0xc4,0xe2,0x7b,0x49,0xd8

# CHECK: ldtilecfg [rbp + 8*r14 + 268435456]
0xc4,0xa2,0x78,0x49,0x84,0xf5,0x00,0x00,0x00,0x10

# CHECK: ldtilecfg [r8 + 4*rax + 291]
0xc4,0xc2,0x78,0x49,0x84,0x80,0x23,0x01,0x00,0x00

# CHECK: ldtilecfg [rip]
0xc4,0xe2,0x78,0x49,0x05,0x00,0x00,0x00,0x00

# CHECK: ldtilecfg [2*rbp - 2048]
0xc4,0xe2,0x78,0x49,0x04,0x6d,0x00,0xf8,0xff,0xff

# CHECK: sttilecfg [rbp + 8*r14 + 268435456]
0xc4,0xa2,0x79,0x49,0x84,0xf5,0x00,0x00,0x00,0x10

# CHECK: sttilecfg [r8 + 4*rax + 291]
0xc4,0xc2,0x79,0x49,0x84,0x80,0x23,0x01,0x00,0x00

# CHECK: sttilecfg [rip]
0xc4,0xe2,0x79,0x49,0x05,0x00,0x00,0x00,0x00

# CHECK: sttilecfg [2*rbp - 2048]
0xc4,0xe2,0x79,0x49,0x04,0x6d,0x00,0xf8,0xff,0xff

# CHECK: tileloadd tmm6, [rbp + 8*r14 + 268435456]
0xc4,0xa2,0x7b,0x4b,0xb4,0xf5,0x00,0x00,0x00,0x10

# CHECK: tileloadd tmm3, [r8 + 4*rax + 291]
0xc4,0xc2,0x7b,0x4b,0x9c,0x80,0x23,0x01,0x00,0x00

# CHECK: tileloadd tmm3, [2*rbp - 32]
0xc4,0xe2,0x7b,0x4b,0x1c,0x6d,0xe0,0xff,0xff,0xff

# CHECK: tileloadd tmm4, [rbx + 64]
0xc4,0xe2,0x7b,0x4b,0x64,0x23,0x40

# CHECK: tileloaddt1 tmm6, [rbp + 8*r14 + 268435456]
0xc4,0xa2,0x79,0x4b,0xb4,0xf5,0x00,0x00,0x00,0x10

# CHECK: tileloaddt1 tmm3, [r8 + 4*rax + 291]
0xc4,0xc2,0x79,0x4b,0x9c,0x80,0x23,0x01,0x00,0x00

# CHECK: tileloaddt1 tmm3, [2*rbp - 32]
0xc4,0xe2,0x79,0x4b,0x1c,0x6d,0xe0,0xff,0xff,0xff

# CHECK: tileloaddt1     tmm6, [rbp + 16]
0xc4,0xe2,0x79,0x4b,0x74,0x25,0x10

# CHECK: tilerelease
0xc4,0xe2,0x78,0x49,0xc0

# CHECK: tilestored [rbp + 8*r14 + 268435456], tmm6
0xc4,0xa2,0x7a,0x4b,0xb4,0xf5,0x00,0x00,0x00,0x10

# CHECK: tilestored [r8 + 4*rax + 291], tmm3
0xc4,0xc2,0x7a,0x4b,0x9c,0x80,0x23,0x01,0x00,0x00

# CHECK: tilestored [2*rbp - 32], tmm3
0xc4,0xe2,0x7a,0x4b,0x1c,0x6d,0xe0,0xff,0xff,0xff

# CHECK: tilestored [r8], tmm3
0xc4,0xc2,0x7a,0x4b,0x1c,0x20

# CHECK: tilezero tmm6
0xc4,0xe2,0x7b,0x49,0xf0

# CHECK: tilezero tmm3
0xc4,0xe2,0x7b,0x49,0xd8

# CHECK: ldtilecfg [rbp + 8*r14 + 268435456]
0xc4,0xa2,0x78,0x49,0x84,0xf5,0x00,0x00,0x00,0x10

# CHECK: ldtilecfg [r8 + 4*rax + 291]
0xc4,0xc2,0x78,0x49,0x84,0x80,0x23,0x01,0x00,0x00

# CHECK: ldtilecfg [rip]
0xc4,0xe2,0x78,0x49,0x05,0x00,0x00,0x00,0x00

# CHECK: ldtilecfg [2*rbp - 2048]
0xc4,0xe2,0x78,0x49,0x04,0x6d,0x00,0xf8,0xff,0xff

# CHECK: sttilecfg [rbp + 8*r14 + 268435456]
0xc4,0xa2,0x79,0x49,0x84,0xf5,0x00,0x00,0x00,0x10

# CHECK: sttilecfg [r8 + 4*rax + 291]
0xc4,0xc2,0x79,0x49,0x84,0x80,0x23,0x01,0x00,0x00

# CHECK: sttilecfg [rip]
0xc4,0xe2,0x79,0x49,0x05,0x00,0x00,0x00,0x00

# CHECK: sttilecfg [2*rbp - 2048]
0xc4,0xe2,0x79,0x49,0x04,0x6d,0x00,0xf8,0xff,0xff

# CHECK: tileloadd tmm6, [rbp + 8*r14 + 268435456]
0xc4,0xa2,0x7b,0x4b,0xb4,0xf5,0x00,0x00,0x00,0x10

# CHECK: tileloadd tmm3, [r8 + 4*rax + 291]
0xc4,0xc2,0x7b,0x4b,0x9c,0x80,0x23,0x01,0x00,0x00

# CHECK: tileloadd tmm3, [2*rbp - 32]
0xc4,0xe2,0x7b,0x4b,0x1c,0x6d,0xe0,0xff,0xff,0xff

# CHECK: tileloaddt1 tmm6, [rbp + 8*r14 + 268435456]
0xc4,0xa2,0x79,0x4b,0xb4,0xf5,0x00,0x00,0x00,0x10

# CHECK: tileloaddt1 tmm3, [r8 + 4*rax + 291]
0xc4,0xc2,0x79,0x4b,0x9c,0x80,0x23,0x01,0x00,0x00

# CHECK: tileloaddt1 tmm3, [2*rbp - 32]
0xc4,0xe2,0x79,0x4b,0x1c,0x6d,0xe0,0xff,0xff,0xff

# CHECK: tilerelease
0xc4,0xe2,0x78,0x49,0xc0

# CHECK: tilestored [rbp + 8*r14 + 268435456], tmm6
0xc4,0xa2,0x7a,0x4b,0xb4,0xf5,0x00,0x00,0x00,0x10

# CHECK: tilestored [r8 + 4*rax + 291], tmm3
0xc4,0xc2,0x7a,0x4b,0x9c,0x80,0x23,0x01,0x00,0x00

# CHECK: tilestored [2*rbp - 32], tmm3
0xc4,0xe2,0x7a,0x4b,0x1c,0x6d,0xe0,0xff,0xff,0xff

# CHECK: tilezero tmm6
0xc4,0xe2,0x7b,0x49,0xf0

# CHECK: tilezero tmm3
0xc4,0xe2,0x7b,0x49,0xd8
